﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Lecturers/Lecturers.Master" Inherits="System.Web.Mvc.ViewPage<Diploma.Models.CollaborationRoom>" %>
<%@ Import Namespace="ViewRes" %>
<asp:Content ID="ScriptsContent" ContentPlaceHolderID="ScriptsContent" runat="server">
    </asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:SharedStrings.Edit%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%:SharedStrings.Edit%></h2>

<%
    using (Html.BeginForm())
    {%>
        <%:Html.ValidationSummary(true, "Заполните необходимые поля", new {@class = "validationErrorBox"})%>         

         
        <%:Html.HiddenFor(model => model.CollaborationRoomId)%>

       <div>
            <%:SharedStrings.Name%>
        </div>
        <div>
            <%:Html.TextAreaFor(model => model.BaseTheme, new {cols = "100",})%>
            <%:Html.ValidationMessageFor(mpdel => Model.BaseTheme, "*", new {@class = "validationErrorBox"})%>
        </div>
        
        <div>
            <%:SharedStrings.Description%>
        </div>
        <div>
            <%:Html.TextAreaFor(model => model.BaseDescription, new {cols = "100",})%>
            
        </div>
        
        <div class="editor-label">
            <%:CollaborationRooms.Consultant%>
        </div>
        <div class="editor-field">
            <%:Html.DropDownList("ConsultantId", (IEnumerable<SelectListItem>) ViewData["Lecturers"], "-")%>
        </div>
        
        <p>
            <input type="submit" value=" <%:SharedStrings.Save%>" />
        </p>
    
<%
    }%>

</asp:Content>

